#define _CRT_SECURE_NO_WARNINGS 1
#include "binarytree.h"

void testbinarytree()
{
	char arr[] = "ABD##E#H##CF##G##";
	int n = sizeof(arr) / sizeof(arr[0]);
	int i = 0;
	BTNode* root = BinaryTreeCreate(arr,n,&i);
	printf("%d\n", BinaryTreeSize(root));
	printf("%d\n", BinaryTreeLeafSize(root));
	BinaryTreeDestory(&root);

}

int main()
{
	testbinarytree();
}
